package com.springboot.service.impl;

import com.springboot.mapper.UserMapper;
import com.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public void deleteByPrimaryKey(Integer id) {
        int rows = userMapper.deleteByPrimaryKey(id);
        System.out.println("rows = " + rows);
        int i = 1/0;
    }
}
